﻿using DataModels.Entities.ServiceDay;
using Utils;

namespace DataModels.Dto.ServiceDayService
{
    public class ServiceDayServiceDto
    {
        public Guid UUID { get; set; }

        /// <summary>
        /// 活动标题
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 活动标题介绍
        /// </summary>
        public string Description { get; set; }

        /// <summary>
        /// 活动分数
        /// </summary>
        public int Points { get; set; }

        /// <summary>
        /// 每人限制参与次数
        /// </summary>
        public int LimitParticipationCount { get; set; }

        /// <summary>
        /// 活动结束时间
        /// </summary>
        public DateTime? EndTime { get; set; }

        /// <summary>
        /// 参与次数
        /// </summary>
        public int JoinCount { get; set; } = 0;
    }

    public class JoinServiceDayPointsActivitiesInfo
    {
        [GeneralRequired]
        public Guid ServiceDayPointsActivitiesUUID { get; set; }
    }

    public class GetServiceDayPointsProductDto
    {
        public Guid UUID { get; set; }

        /// <summary>
        /// 图片
        /// </summary>
        public string Image { get; set; }

        /// <summary>
        /// 商品标题
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 商品介绍
        /// </summary>
        public string Description { get; set; }

        /// <summary>
        /// 商品所需分数
        /// </summary>
        public int Points { get; set; }

        /// <summary>
        /// 商品数量
        /// </summary>
        public int Count { get; set; }

        /// <summary>
        /// 每人限制次数
        /// </summary>
        public int LimitParticipationCount { get; set; }
        /// <summary>
        /// 兑换次数
        /// </summary>
        public int CashAPrizeCount { get; set; } = 0;
    }

    public class CashAPrizePointProductInfo
    {
        [GeneralRequired]
        public Guid ServiceDayPointsProductUUID { get; set; }
    }
}
